# -- coding: utf-8 --
# @Time : 2021/3/17--15:26
# @Author : ChinaV
# @File : 基本操作题 2：课程分数排序输出.py


studs = [{'sid': '103', 'Chinese': 90}, {'sid': '101', 'Chinese': 80}, {'sid': '102', 'Chinese': 70}]
scores = {}
for stud in studs:
    sv = stud.items()
    for it in sv:
        if it[0] == 'sid':
            k = it[1]
        else:
            scores[k] = it[1]
so = list(scores.items())
so.sort(key=lambda x: x[0], reverse=False)
for l in so:
    print('{}:{}'.format(l[0], l[1]))
